import { Component, OnInit } from '@angular/core';
import { NzModalRef, NzMessageService } from 'ng-zorro-antd';
import { OTC_RECORD_TYPE } from '../../../../constant/dictionary';

@Component({
  selector: 'app-otc-credit-view',
  templateUrl: './otc-credit-view.component.html',
})
export class OtcCreditViewComponent implements OnInit {
  // 积分记录明细 operate_type= 1|2|3- 票据id, 4|7-转移记录id 5|6-兑换记录) 8充值记录 9|10 核销
  entity: any = {};
  isLoading: boolean = false;
  otcRecordType:any [] = OTC_RECORD_TYPE;

  constructor(
    private modal: NzModalRef,
    public message: NzMessageService,
  ) {
  }

  ngOnInit(): void {
    this.isLoading = true;
    console.log(this.entity)
    let that = this;
    setTimeout(function(res) {
      that.isLoading = false;
    }, 300);
  }

  close() {
    this.modal.destroy();
  }
}
